let sysMan = [
  /** 基础数据 */
  // 工厂管理
  {
    path: '/factory',
    name: 'factory',
    component (resolve) {
      require(['../view/sysMan/organization/factory/Factory'], resolve)
    },
    meta: {
      keepAlive: true,
      menuItem: 'factory',
      subMenu: 'organization',
      rootDir: 'sysMan',
      title: '工厂管理'
    }
  },
  // 工厂详情
  {
    path: '/factoryDetail',
    name: 'factoryDetail',
    component (resolve) {
      require(['../view/sysMan/organization/factory/FactoryDetail'], resolve)
    },
    meta: {
      keepAlive: false,
      menuItem: 'factory',
      subMenu: 'organization',
      rootDir: 'sysMan',
      title: '工厂详情'
    }
  },
  // 车间管理
  {
    path: '/workshop',
    name: 'workshop',
    component (resolve) {
      require(['../view/sysMan/organization/workshop/Workshop'], resolve)
    },
    meta: {
      keepAlive: true,
      menuItem: 'workshop',
      subMenu: 'organization',
      rootDir: 'sysMan',
      title: '车间管理'
    }
  },
  // 车间详情
  {
    path: '/workshopDetail',
    name: 'workshopDetail',
    component (resolve) {
      require(['../view/sysMan/organization/workshop/WorkshopDetail'], resolve)
    },
    meta: {
      keepAlive: false,
      menuItem: 'workshop',
      subMenu: 'organization',
      rootDir: 'sysMan',
      title: '车间详情'
    }
  },
  // 班组列表
  {
    path: '/workgroup',
    name: 'workgroup',
    component (resolve) {
      require(['../view/sysMan/organization/workgroup/Workgroup'], resolve)
    },
    meta: {
      keepAlive: true,
      menuItem: 'workgroup',
      subMenu: 'organization',
      rootDir: 'sysMan',
      title: '班组管理'
    }
  },
  // 班组详情
  {
    path: '/workgroupDetail',
    name: 'workgroupDetail',
    component (resolve) {
      require(['../view/sysMan/organization/workgroup/WorkgroupDetail'], resolve)
    },
    meta: {
      keepAlive: false,
      menuItem: 'workgroup',
      subMenu: 'organization',
      rootDir: 'sysMan',
      title: '班组详情'
    }
  },
  // 人員列表
  {
    path: '/employee',
    name: 'employee',
    component (resolve) {
      require(['../view/sysMan/organization/employee/Employee'], resolve)
    },
    meta: {
      keepAlive: true,
      menuItem: 'employee',
      subMenu: 'organization',
      rootDir: 'sysMan',
      title: '人员管理'
    }
  },
  // 人員详情
  {
    path: '/employeeDetail',
    name: 'employeeDetail',
    component (resolve) {
      require(['../view/sysMan/organization/employee/EmployeeDetail'], resolve)
    },
    meta: {
      keepAlive: false,
      menuItem: 'employee',
      subMenu: 'organization',
      rootDir: 'sysMan',
      title: '人员详情'
    }
  },
  // 外协厂商管理列表
  // {
  //   path: '/manufacturer',
  //   name: 'manufacturer',
  //   component (resolve) {
  //     require(['../view/sysMan/organization/manufacturer/Manufacturer'], resolve)
  //   },
  //   meta: {
  //     keepAlive: true,
  //     menuItem: 'manufacturer',
  //     subMenu: 'organization',
  //     rootDir: 'sysMan',
  //     title: '外协厂商管理'
  //   }
  // },
  // // 外协厂商管理详情
  // {
  //   path: '/manufacturerDetail',
  //   name: 'manufacturerDetail',
  //   component (resolve) {
  //     require(['../view/sysMan/organization/manufacturer/ManufacturerDetail'], resolve)
  //   },
  //   meta: {
  //     keepAlive: false,
  //     menuItem: 'manufacturer',
  //     subMenu: 'organization',
  //     rootDir: 'sysMan',
  //     title: '外协厂商管理详情'
  //   }
  // },
  // 工序库管理列表
  {
    path: '/processDatabase',
    name: 'processDatabase',
    component (resolve) {
      require(['../view/sysMan/basicData/processDatabase/ProcessDatabase'], resolve)
    },
    meta: {
      keepAlive: true,
      menuItem: 'processDatabase',
      subMenu: 'basicData',
      rootDir: 'sysMan',
      title: '工序库管理'
    }
  },
  // 工序库管理详情
  {
    path: '/processDatabaseDetail',
    name: 'processDatabaseDetail',
    component (resolve) {
      require(['../view/sysMan/basicData/processDatabase/ProcessDatabaseDetail'], resolve)
    },
    meta: {
      keepAlive: false,
      menuItem: 'processDatabase',
      subMenu: 'basicData',
      rootDir: 'sysMan',
      title: '工序库详情'
    }
  },
  // 产品批次管理
  {
    path: '/productBatches',
    name: 'productBatches',
    component (resolve) {
      require(['../view/sysMan/basicData/productBatches/ProductBatches'], resolve)
    },
    meta: {
      keepAlive: false,
      menuItem: 'productBatches',
      subMenu: 'basicData',
      rootDir: 'sysMan',
      title: '产品批次管理'
    }
  },
  // 工作中心管理列表
  {
    path: '/workCenter',
    name: 'workCenter',
    component (resolve) {
      require(['../view/sysMan/organization/workCenter/WorkCenter'], resolve)
    },
    meta: {
      keepAlive: true,
      menuItem: 'workCenter',
      subMenu: 'organization',
      rootDir: 'sysMan',
      title: '工作中心管理'
    }
  },
  // 工作中心管理详情
  {
    path: '/workCenterDetail',
    name: 'workCenterDetail',
    component (resolve) {
      require(['../view/sysMan/organization/workCenter/WorkCenterDetail'], resolve)
    },
    meta: {
      keepAlive: false,
      menuItem: 'workCenter',
      subMenu: 'organization',
      rootDir: 'sysMan',
      title: '工作中心详情'
    }
  },
  // 物料标记列表
  {
    path: '/materialBasicData',
    name: 'materialBasicData',
    component (resolve) {
      require(['../view/sysMan/basicData/materialBasicData/MaterialBasicData'], resolve)
    },
    meta: {
      keepAlive: true,
      menuItem: 'materialBasicData',
      subMenu: 'basicData',
      rootDir: 'sysMan',
      title: '物料标记'
    }
  },
  // 消息通知
  {
    path: '/message',
    name: 'message',
    component (resolve) {
      require(['../view/sysMan/record/message/Message'], resolve)
    },
    meta: {
      keepAlive: false,
      menuItem: 'message',
      subMenu: 'record',
      rootDir: 'sysMan',
      title: '消息通知'
    }
  },
  // 日志管理
  {
    path: '/logManage',
    name: 'logManage',
    component (resolve) {
      require(['../view/sysMan/record/logManage/LogManage'], resolve)
    },
    meta: {
      keepAlive: true,
      menuItem: 'logManage',
      subMenu: 'record',
      rootDir: 'sysMan',
      title: '日志管理'
    }
  },
  // 原材料属性设置
  {
    path: '/rawMaterialProp',
    name: 'rawMaterialProp',
    component (resolve) {
      require(['../view/sysMan/basicData/rawMaterialProp/RawMaterialProp'], resolve)
    },
    meta: {
      keepAlive: true,
      menuItem: 'rawMaterialProp',
      subMenu: 'basicData',
      rootDir: 'sysMan',
      title: '原材料属性设置'
    }
  },
  // 原材料数据记录
  {
    path: '/rawMaterialData',
    name: 'rawMaterialData',
    component (resolve) {
      require(['../view/sysMan/basicData/rawMaterialData/RawMaterialData'], resolve)
    },
    meta: {
      keepAlive: true,
      menuItem: 'rawMaterialData',
      subMenu: 'basicData',
      rootDir: 'sysMan',
      title: '原材料数据记录'
    }
  },
]

export default sysMan
